CMSC 425 : Lecture 12 Procedural Generation : 2 D Perlin Noise

نویسنده

  • Dave Mount
چکیده

Let’s investigate the finer points. First, let us begin by assuming that we have an n×n grid of unit squares (see Fig. 1(a)), for a relatively small number n (e.g., n might range from 2 to 10). For each vertex [i, j] of this grid, where 0 ≤ i, j ≤ n, let us generate a random scalar value z[i,j]. (Note that these values are actually not very important. In Perlin’s implementation of the noise function, these value are all set to 0, and it still produces a remarkably rich looking noise function.) As in the 1-dimensional case, it is convenient to have the values wrap around, which we can achieve by setting z[i,n] = z[i,0] and z[n,j] = z[0,j] for all i and j. Given any point (x, y), where 0 ≤ x, y < n, the corner points of the square containing this point are (x0, y0), (x1, y0), (x1, y1), (x0, y1) where:

منابع مشابه

Cmsc 498w Lecture 5 " Generating Virtual Worlds I " 2016-02-11

Perlin's original noise function was defined in terms of generating random vectors at lattice points and then interpolating between them, but a simple approximation can be created by instead generating White noise values at the lattice points and then interpolating. The fewer interpolated points there are, the higher the frequencies in the noise will be. You can then generate fractal noise by t...

متن کامل

CMSC 425 Dave Mount CMSC 425 : Lecture 2 Computer Game and Graphics System Architectures

Computer Game Architecture: A large computer game is a significant technical undertaking, involving a large number of interacting components. Of course, not all computer games require the same level of complexity. Different genres of games require different capabilities. The combination of components used for a simple casual 2-dimensional game like Tetris) is very different from a high-end 3-di...

متن کامل

CMSC 425 Game Programming

1 Copyright, David M. Mount, 2016, Dept. of Computer Science, University of Maryland, College Park, MD, 20742. These lecture notes were prepared by David Mount for the course CMSC 425, Game Programming, at the University of Maryland. Permission to use, copy, modify, and distribute these notes for educational purposes and without fee is hereby granted, provided that this copyright notice appear ...

متن کامل

CMSC 425 Dave Mount CMSC 425 : Lecture 6 3 - d Viewing and Projections

Viewing in OpenGL: Today we will discuss how viewing and perspective transformations are handled for 3-dimensional scenes. In OpenGL, and most similar graphics systems, the process involves the following basic steps, of which the perspective transformation is just one component. We assume that all objects are initially represented relative to a standard 3-dimensional coordinate frame, in what a...

متن کامل

CMSC 425 Game Programming 1

1Copyright, David M. Mount, 2013, Dept. of Computer Science, University of Maryland, College Park, MD, 20742. These lecture notes were prepared by David Mount for the course CMSC 425, Game Programming, at the University of Maryland. Permission to use, copy, modify, and distribute these notes for educational purposes and without fee is hereby granted, provided that this copyright notice appear i...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

متن کامل
عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2016